#include"Stack.h"

void StackInit(struct Stack* pst,int defaultCapacity)
{
	pst->a = (int*)malloc(sizeof(int)*defaultCapacity);
	if(pst->a == NULL)
	{
		perror("malloc fail");
		return;
	}
	
	pst->top=0;
	pst->capacity = defaultCapacity; 
}

void StackPush(struct Stack*pst,int x)
{
	printf("void StackPush (struct Stack* pst,int x)\n");
}

void StackPush(struct Stack* pst,double x)
{
	printf("void StackPush(struct Stack* pst,double x)\n");
}
